#@adminLayout()
#define main()
<div class="jbolt_page" data-key="/demo/imguploader" >
    <div class="jbolt_page_title">
        <h1>添加员工</h1>
    </div>
    <div class="jbolt_page_content">
        <div class="row">

                <form class="form-inline"  id="retailerStaffAddForm" action="/auth/mall/staff/save_staff"  data-pjaxsubmit  method="get">
                    <div class="form-group row">
                        <label class="col-6 "><h4>选择商家</h4></label>
                        <div class="col-12">
                            <select class="form-control"
                                    name="staff.retailer_id"
                                    id="retailerId"
                                    data-autoload
                                    data-url="/auth/mall/retailer/options"
                                    data-rule="required"
                                    data-tips="请选择商家"
                                    data-text="请选择商家"
                                    data-value=""
                                    data-select="#(retailerId??)"
                            >
                            </select >
                        </div>

                    </div>
                    <div class="form-group row" style="margin-top: 10px">
                        <label class="col-4"><h4>搜索员工</h4></label>
                        <div class="col-12">
                            <input type="text" autocomplete="off" class="form-control " style="width: 350px"
                                   data-autocomplete
                                   data-url="/auth/mall/member/options"
                                   data-hiddeninput="member_id"
                                   data-text-attr="nickname,mobile"
                                   data-column-attr="nickname,mobile"
                                   data-rule="required" placeholder="请选择用户"  data-tips="请选择用户"  maxlength="40" name="username2" value="#(username2??)">
                            <input type="hidden" id="member_id" data-rule="required" data-tips="请选择用户"  name="member_id" value=""   autocomplete="off" />
                        </div>
                    </div>

                    <div class="form-group row" style="margin-top: 10px">
                        <label class=" col-6 "><h4>员工真实姓名</h4></label>
                        <div class="col-12">
                            <input type="text" autocomplete="off"  placeholder="请输入员工真实姓名"  class="form-control" data-rule="required" maxlength="8" data-tips="请输入正确的员工姓名" name="staff_name" >
                        </div>
                    </div>

                    <div class=" form-group row col-12">
                        <br><br><br><br>
                        <button type="button"  onclick="RefreshsubmitForm(retailerStaffAddForm)" class="btn btn-success" ><i class="fa fa-check mr-2"></i>添加</button>
                    </div>
                </form>
        </div>
    </div>
</div>
#end

#define js()
#end